package monster.flight.admin.manager.service.xtgl;

import java.util.List;


import monster.flight.comm.entity.vo.Xt_men;

/**
 * 创建信息=============
 * 类名: monster.flight.admin.manager.service.xtgl.MenuService
 * 类作用描述: 角色菜单管理
 * 创建人： wanghong 
 * 创建时间： 2013-1-15 上午11:01:11
 * 修改信息1=============
 * 修改类型:     //1.修改bug 2.业务变化修改
 * 修改描述: 
 * 修改人：  
 * 修改时间：
 */

public interface MenuService {
	/**
	*@Description: 返回所有菜单
	*@throws Exception  
	*@return List<Xt_men>    
	 */
	public List<Xt_men> getAllMenu()throws Exception;
	/** 
	*@Description: 新增菜单
	*@param xt_men
	*@throws Exception  
	*@return void    
	 */
	public void insert(Xt_men xt_men) throws Exception;
	/** 
	*@Description: 根据主键更新菜单
	*@param xt_men
	*@throws Exception  
	*@return void    
	 */
	public void update(Xt_men xt_men) throws Exception;
	/** 
	*@Description: 根据fomcat删除菜单包括子菜单
	*@param xt_men
	*@throws Exception  
	*@return void    
	 */
	public void deleteMenAndChild(String fomcat) throws Exception;
	/**
	*@Description: 判断传入的菜单ID是否有子节点
	*@param id
	*@throws Exception  
	*@return boolean  
	 */
	public boolean isHasChildren(String id) throws Exception;
	/**
	*@Description: 根据主键返回菜单
	*@param id
	*@throws Exception  
	*@return Xt_men    
	 */
	public Xt_men getPoByID(String id) throws Exception;
	/**
	 * @Description: 校验menu_code的唯一性
	 * @param menu_code
	 * @param old_menu_code
	 * @return true 唯一，false 不唯一
	 * @throws Exception
	 */
	public boolean vild_MenuCode(String men_code,String old_men_code)throws Exception;

}
